import request from '@/utils/requestByForm'

// 查询左侧 商品分类tree
export function getVarietys(param) {
  return request({
    url: 'api/variety-tree',
    method: 'post',
    param
  })
}

export function add(data) {
  return request({
    url: 'api/add-product-parameter',
    method: 'post',
    data
  })
}

export function del(parameter_id) {
  return request({
    url: 'api/del-product-parameter/' + parameter_id,
    method: 'get'
  })
}

export function edit(data) {
  return request({
    url: 'api/edit-product-parameter',
    method: 'post',
    data
  })
}
